package com.binvshe.binvshe.common.http;


/**
 * url center
 *
 * @Author: PV
 * @E-mail: pengveivei@sina.cn
 * @CreateDate: 2016/7/18 15:04
 * @Version: 1.0.0
 */
public class UrlCenter {

    private static final String URL_HEAD = "/v2.0/app";
//    private static final String URL_HEAD = "/v1.0/app";

    /**
     * 获取token
     */
    public final static String LOGIN = UrlBase.URL_PREFIX + URL_HEAD + "/user/login";
    /**
     * 注册
     */
    public final static String REGISTER = UrlBase.URL_PREFIX + URL_HEAD + "/user/register";
    /**
     * 获取用户信息
     */
    public final static String USER = UrlBase.URL_PREFIX + URL_HEAD + "/user/%1$s";


    /**
     * 获取用户信息
     */
    public final static String USER1 = UrlBase.URL_PREFIX + URL_HEAD + "/user";

    /**
     * 用户信息更新
     */
    public final static String USER_UPDATA = UrlBase.URL_PREFIX + URL_HEAD + "/user";
    /**
     * 修改密码
     */
    public final static String PASSWORD = UrlBase.URL_PREFIX + URL_HEAD + "/user/password";
    /**
     * 默认头像地址
     */
    public final static String PORTRAIT = UrlBase.URL_PREFIX + URL_HEAD + "http://static.binvshe.com/static/default/portrait.png";
    /**
     * 忘记密码
     */
    public final static String PASSWORD_FORGET = UrlBase.URL_PREFIX + URL_HEAD + "/user/password/forget";
    /**
     * 请求验证码
     * type: 1、注册 2 、修改密码 3、重置密码
     */
    public final static String CAPTCHA = UrlBase.URL_PREFIX + "/captcha/%1$s/type/%2$d";
    /**
     * 校验验证码
     * type: 1、注册 2 、修改密码 3、重置密码
     */
    public final static String CHECK_CAPTCHA = UrlBase.URL_PREFIX + "/captcha/verify/phone/%1$s/type/%2$d/code/%3$s";
    /**
     * 头像上传
     */
    public final static String UPLOAD_PORTRAIT = UrlBase.URL_PREFIX + URL_HEAD + "/upload/portrait/%1$s";
    /**
     * 上传用户头像
     */
    public final static String UPLOAD_USERHEAD = "http://static.binvshe.com:2016/res/upload";
    /**
     * 批量上传
     */
    public final static String UPLOAD_MULIT = "http://static.binvshe.com:2016/res/upload/multi";
//    public final static String UPLOAD_USERHEAD=UrlBase.URL_PREFIX+"/res/upload/portrait/%1$s";
    /**
     * token刷新
     */
    public final static String TOKEN_REFRESH = UrlBase.URL_PREFIX + URL_HEAD + "/token/refresh";
    /*
   * 检测存在
   * */
    public final static String EXISTS = UrlBase.URL_PREFIX + URL_HEAD + "/user/exists/%1$s";

    /**
     * 获得热门标签
     */
    public final static String GET_HOT_TAG = UrlBase.URL_PREFIX + URL_HEAD + "/tags/hot";
    /**
     * 获得必选标签
     */
    public final static String GET_MUST_TAG = UrlBase.URL_PREFIX + URL_HEAD + "/tags/required";
    /**
     * 创建社团
     */
    public final static String CREAT_CLUB = UrlBase.URL_PREFIX + URL_HEAD + "/club";

    /**
     * 获取社团分类
     */
    public final static String GET_ORG_TYPE = UrlBase.URL_PREFIX + URL_HEAD + "/club/categories";

    /**
     * 获取社团列表
     */
    public final static String GET_ORG_LIST = UrlBase.URL_PREFIX + URL_HEAD + "/club";

    /**
     * 获取关注社团
     */
    public final static String CLUB_FOLLOW = UrlBase.URL_PREFIX + URL_HEAD + "/club/follow";

    /**
     * 获取我的关注
     */
    public final static String USER_FOLLOW = UrlBase.URL_PREFIX + URL_HEAD + "/user/follow";

    /**
     * 获取我的粉丝
     */
    public final static String USER_FANS = UrlBase.URL_PREFIX + URL_HEAD + "/user/fans";

    /**
     * 获取用户社团列表
     */
    public final static String MYCLUB_ = UrlBase.URL_PREFIX + URL_HEAD + "/club/myclub";

    /**
     * 解散社团
     */
    public final static String DEl_CLUB = UrlBase.URL_PREFIX + URL_HEAD + "/club/%1$d";

    /**
     * 转出社团
     */
    public final static String TRANSFER_CLUB = UrlBase.URL_PREFIX + URL_HEAD + "/club/%1$S/transfer/%2$S";

    /**
     * 社团成员
     */
    public final static String CLUB_MEMBER = UrlBase.URL_PREFIX + URL_HEAD + "/club/%1$d/member";

    /**
     * 取消社团关注
     */
    public final static String DEL_CLUB = UrlBase.URL_PREFIX + URL_HEAD + "/club/follow/%1$S";
    /**
     * 关注社团
     */
    public final static String ADD_CLUB_ATTENTION = UrlBase.URL_PREFIX + URL_HEAD + "/club/follow/%1$S";
    /**
     * 获取作品分页列表
     */
    public final static String GET_OPUS = UrlBase.URL_PREFIX + URL_HEAD + "/article";

    /**
     * 点赞
     */
    public final static String LIKE = UrlBase.URL_PREFIX + URL_HEAD + "/user/event/like/%1$s/%2$d";

    /**
     * 评论列表（增量获取）
     */
    public final static String COMMENT_LIST = UrlBase.URL_PREFIX + URL_HEAD + "/comment/increment/type/%1$s/target/%2$d";

    /**
     * 回复评论
     */
    public final static String REPLY = UrlBase.URL_PREFIX + URL_HEAD + "/comment/reply/%1$S";

    /**
     * 评论
     */
    public final static String COMMENT = UrlBase.URL_PREFIX + URL_HEAD + "/comment/type/%1$s/target/%2$d";

    /**
     * 社团详情（含用户状态）
     */
    public final static String GET_CLUB_DETATLS_STATE = UrlBase.URL_PREFIX + URL_HEAD + "/club/%1$s/detail";
    /**
     * 社团详情
     */
    public final static String GET_CLUB_DETAILS = UrlBase.URL_PREFIX + URL_HEAD + "/club/%1$s";
    /**
     * 获取社团成员(拼clubid)
     */
    public final static String GET_CLUB_MEMBER = UrlBase.URL_PREFIX + URL_HEAD + "/club/%1$s/member";

    /**
     * 热门活动
     */
    public final static String HOT_ACTIVITIES = UrlBase.URL_PREFIX + URL_HEAD + "/activities/hot";

    /**
     * 同意邀请
     */
    public final static String AGREE_INVITE = UrlBase.URL_PREFIX + URL_HEAD + "/club/%1$d/invite/%2$d/agree";

    /**
     * 拒绝邀请
     */
    public final static String REFUSE_INVITE = UrlBase.URL_PREFIX + URL_HEAD + "/club/%1$d/invite/%2$d/refuse";

    /**
     * 邀请加入社团
     */
    public final static String INVITE_CLUB = UrlBase.URL_PREFIX + URL_HEAD + "/club/%1$d/invite/%2$d";

    /**
     * 关注
     */
    public final static String FOLLOW = UrlBase.URL_PREFIX + URL_HEAD + "/user/follow/%1$d";

    /**
     * 取消关注
     */
    public final static String DELETE_FOLLOW = UrlBase.URL_PREFIX + URL_HEAD + "/user/follow/%1$d";

    /**
     * 添加作品
     */
    public final static String ADD_ARTICLE = UrlBase.URL_PREFIX + URL_HEAD + "/article";
    /**
     * 获取作品详情
     */
    public final static String GET_OPUS_DETAIL = UrlBase.URL_PREFIX + URL_HEAD + "/article/%1$s";

    /**
     * 获取最新作品列表
     */
    public final static String GET_NEW_OPUS_LIS = UrlBase.URL_PREFIX + URL_HEAD + "/article/latest";

    /**
     * 我的收藏
     */
    public final static String FAVORITE = UrlBase.URL_PREFIX + URL_HEAD + "/article/favorite";

    /**
     * 意见反馈
     */
    public final static String FEEDBACK = UrlBase.URL_PREFIX + URL_HEAD + "/feedback";

    /**
     * 首页社团推荐作品
     */
    public final static String GET_CLUB_RECOMMEND = UrlBase.URL_PREFIX + URL_HEAD + "/article/club/recommend";
    /**
     * 社团签到
     */
    public final static String POST_CLUB_CHECKIN = UrlBase.URL_PREFIX + URL_HEAD + "/club/%1$s/checkin";

    /**
     * 申请入团(clubid)
     */
    public final static String POST_APPLY_CLUB = UrlBase.URL_PREFIX + URL_HEAD + "/club/%1$s/apply";

    /**
     * 关注取消关注(用户)
     */
    public final static String POST_USER_FOLLOW = UrlBase.URL_PREFIX + URL_HEAD + "/user/follow/%1$s";

    /**
     * 申请审核通过
     */
    public final static String AGREE_REQUEST = UrlBase.URL_PREFIX + URL_HEAD + "/club/%1$d/apply/%2$d/agree";

    /**
     * 申请审核拒绝
     */
    public final static String REFUSE_REQUEST = UrlBase.URL_PREFIX + URL_HEAD + "/club/%1$d/apply/%2$d/refuse";

    /**
     * 删除成员
     */
    public final static String DELETE_MEMBER = UrlBase.URL_PREFIX + URL_HEAD + "/club/%1$d/member/%2$d";

    /**
     * 推荐作品与取消推荐
     */
    public final static String RECOMMEND = UrlBase.URL_PREFIX + URL_HEAD + "/article/%1$s/recommend";
    /**
     * 删除作品
     */
    public final static String DELETE_ARTICLE = UrlBase.URL_PREFIX + URL_HEAD + "/article/%1$s";
    /**
     * 二维码
     */
    public final static String QRCODE = UrlBase.URL_PREFIX + URL_HEAD + "/ticket/qrcode/%1$s.png";

    /**
     * 我的门票列表
     */
    public final static String VOUCHERS = UrlBase.URL_PREFIX + URL_HEAD + "/ticket/vouchers";

    /**
     * 失效门票列表
     */
    public final static String VOUCHERS_INVALID = UrlBase.URL_PREFIX + URL_HEAD + "/ticket/vouchers/invalid";

    /**
     * 活动详情WebView加载地址
     */
    public final static String ACTIVITY_DETAIL_HEADER = "http://app.binvshe.com/static/app/index.html#/activity/";

    /**
     * 收藏事件
     */
    public final static String EVENT_FAVORITE = UrlBase.URL_PREFIX + URL_HEAD + "/user/event/favorite/%1$s/%2$d";
    /**
     * 活动分页查询列表
     */
    public final static String ACTIVIES = UrlBase.URL_PREFIX + URL_HEAD + "/activities";
    /**
     * 活动详情
     */
    public final static String ACTIVITY_DETAILS=UrlBase.URL_PREFIX+URL_HEAD+"/activities/%1$s";

    /**
     * 活动公告列表
     */
    public final static String ACTIVITY_NOTE=UrlBase.URL_PREFIX+URL_HEAD+"/note";

    /**
     * 社团资料修改
     */
    public final static String CLUB_UPDATE = UrlBase.URL_PREFIX + URL_HEAD + "/club";

    /**
     * Banner
     */
    public final static String BANNER = UrlBase.URL_PREFIX + URL_HEAD + "/banners/activity";
    /**
     * Banner
     * banner类型
     * channel 值；首页：index活动：activity发布页面：publish ， 社团：club
     */
    public final static String BANNER_TYPE = UrlBase.URL_PREFIX + URL_HEAD + "/banners/%1$s";

    /**
     * 门票日期列表
     */
    public final static String TICKET_DATE = UrlBase.URL_PREFIX + URL_HEAD + "/ticket/cycle/activity/%1$s";
    /**
     * 场次列表
     */
    public final static String TICKET_SESSION = UrlBase.URL_PREFIX + URL_HEAD + "/ticket/times/activity/%1$s";
    /**
     * 获取门票选择列表
     */
    public final static String TICKET_LIST_SELECT = UrlBase.URL_PREFIX + URL_HEAD + "/ticket";

    /**
     * 生成订单
     */
    public final static String CREATE_ORDER = UrlBase.URL_PREFIX + URL_HEAD + "/orders";

    /**
     * 支付宝支付
     */
    public final static String ALIPAY_INFO = UrlBase.URL_PREFIX + "/app" + "/alipay/%1$s";
    /**
     * 微信支付
     */
    public final static String WECHAT_PAYINFO = UrlBase.URL_PREFIX + "/app" + "/wxpay/%1$s";
    /**
     * 取消订单
     */
    public final static String CANCEL_ORDER = UrlBase.URL_PREFIX + URL_HEAD + "/orders/%1$s";

    /**
     * 退出社团
     */
    public final static String EXIT_CLUB = UrlBase.URL_PREFIX + URL_HEAD + "/club/%1$d/exit";

    /**
     * 用户协议
     */
    public final static String PROTOCOL = UrlBase.URL_PREFIX + "/static/app/index.html#/protocol";


    //region  好友

    /**
     * POST /v2.0/app/friend/apply 好友申请
     */
    public final static String REQEST_ADD_FRIEND = UrlBase.URL_PREFIX + "/v2.0/app/friend/apply";

    /**
     * GET /v2.0/app/friends 好友分页列表
     */
    public final static String FRIENDS = UrlBase.URL_PREFIX + "/v2.0/app/friends";

    /**
     * POST /v2.0/app/contacts 通讯录
     */
    public final static String PHONE_CONTACTS = UrlBase.URL_PREFIX + "/v2.0/app/contacts";

    /**
     * PUT /v2.0/app/friend/apply/{apply_id}/agree 同意好友申请
     */
    public final static String AGREE_FRIEND_REQEST = UrlBase.URL_PREFIX + "/v2.0/app/friend/apply/%1$s/agree";

    //endregion

    /**
     * 发布
     */
    public final static String CHANNELS_LIST = UrlBase.URL_PREFIX + "/v2.0/app/channels/list";

    /**
     * POST /v2.0/app/article 发布（图文,视频,文学）
     */
    public final static String ARTICLE = UrlBase.URL_PREFIX + "/v2.0/app/article";

    /**
     * GET /v2.0/app/tags/categoryTag 分类标签
     */
    public final static String CATEGORY_TAG = UrlBase.URL_PREFIX + "/v2.0/app/tags/categoryTag";

    /**
     * GET /v1.0/app/banners/{channel}
     */
    public final static String BANNERS = UrlBase.URL_PREFIX + "/v1.0/app/banners/%1$s";
    /**
     * DELETE /v2.0/app/chapter/{id} 删除一部连载
     */
    public final static String CHAPTER = UrlBase.URL_PREFIX + "/v2.0/app/chapter/%1$s";

    /**
     * GET /v2.0/app/article/longStory 获取用户连载文
     */
    public final static String LONG_STORY = UrlBase.URL_PREFIX + "/v2.0/app/article/longStory";
    /**
     * GET /v2.0/app/article/findText 文学管理
     */
    public final static String ARTICAL_LIST = UrlBase.URL_PREFIX + "/v2.0/app/article/findText";

    /**
     * PUT /v2.0/app/article/end/{id} 标记完结
     */
    public final static String ARTICAL_END = UrlBase.URL_PREFIX + "/v2.0/app/article/end/%1$s";

    /**
     * PUT /v2.0/app/article/editShort 编辑单篇
     */
    public final static String ARTICAL_EDIT_SHORT = UrlBase.URL_PREFIX + "/v2.0/app/article/editShort";
    /**
     * PUT /v2.0/app/chapter/editLong 编辑一部连载
     */
    public final static String ARTICAL_EDIT_LONG = UrlBase.URL_PREFIX + "/v2.0/app/chapter/editLong";


    //endregion


    // region 七牛云token
    /**
     * QINIU_TOKEN
     */
    public final static String QINIU_TOKEN = UrlBase.URL_PREFIX + "/qiniu/uptoken";

    /**
     * QINIU_ OUT LINK 用来跟key拼接生成文件url
     */
    public static final String OUTER_LINK = "http://oksc9qsnt.bkt.clouddn.com/";
    // endregion

    /**
     * 频道内容url
     */
    public final static String CHANNEL_ARTICLE_LIST = UrlBase.URL_PREFIX + "/v2.0/app/article/list";
    /**
     * 频道 导航列表
     */
    public final static String CHANNEL_LIST = UrlBase.URL_PREFIX + "/v2.0/app/channels/list";
    /**
     * 首页导航
     */
    public final static String HOME_CHANNEL_LIST = UrlBase.URL_PREFIX + "/v2.0/app/channels/All";

    /**
     * 作品详情
     * articleID
     */
    public final static String ARTICLE_DETAILS = UrlBase.URL_PREFIX + "/v2.0/app/article/%1$s";

    /**
     * 首页热门
     */
    public final static String HOME_HOT = UrlBase.URL_PREFIX + "/v2.0/app/article/hot";
    /**
     * 首页关注人作品
     */
    public final static String HOME_FOLLOW = UrlBase.URL_PREFIX + "/v2.0/app/article/follow";


    /**
     * 获取章节列表
     */
    public final static String GET_CHAPTER_LIST = UrlBase.URL_PREFIX + URL_HEAD + "/chapter/list";
    /**
     * 文章阅读
     * articleID
     */
    public final static String GET_STORY_DETAILS=UrlBase.URL_PREFIX+URL_HEAD+"/chapter/paging/article/%1$s";

    /**
     * 获取文章标签
     */
    public final static String GET_ART_TAG=UrlBase.URL_PREFIX+URL_HEAD+"/articletag/article/%1$s";


    /**
     * 根据手机号获取用户userId
     */
    public final static String GET_USERID = UrlBase.URL_PREFIX+URL_HEAD+"/user/phone/%1$s";

    /**
     * 扫码获得萌都币
     */
    public final static String GET_SCAN = UrlBase.URL_PREFIX+URL_HEAD+"/coin/qrcode/seat/%1$s";

    /**
     * 扫码支付萌都币
     */
    public final static String PAY_SCAN = UrlBase.URL_PREFIX+URL_HEAD+"/coin/pay/%1$s";

    /**
     * 萌币明细
     */
    public final static String COIN_DETAIL = UrlBase.URL_PREFIX+URL_HEAD+"/user/coin/logs";

}
